package com.ycz;

import com.ycz.mapper.UserMapper;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;

/**
 * @author ycz
 * @date 2021/6/19
 * @description TODO
 * @Company © 版权所有 深圳市天行云供应链有限公司
 */
@Configuration
@MyMapperScan(value = "com.ycz.mapper")
public class Application3 {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext();
        applicationContext.register(Application3.class);
        applicationContext.refresh();
        UserMapper userMapper = (UserMapper) applicationContext.getBean("userMapper");
        userMapper.getById();
    }


}
